var Constant = {
  PROTOCOL: "http",
  HOST_URL: "m.52letsgo.cn",
  HOST_URL2: "120.76.216.67",
  BETA_URL: "beta.52letsgo.cn",
  PROT: "80",
}

var ApiInfo = {
PRE: Constant.PROTOCOL + "://" + Constant.HOST_URL + ":" + Constant.PROT,
  //接口
  Home: "/mobile/2.0/index",
  Login: "/mobile/user",
  Code: "/mobile/user",
  quickMobileCode: "/mobile/user",
  quickMobileLogin: "/mobile/user",
  ChangePwd: "/mobile/user",
  Register: "/mobile/user",
  findCode: "/mobile/user",
  Citys: "mobile/city",
  HotProduct: "/mobile/product",
  ActiveDay: "/mobile/product",
  ProductList: "/mobile/product",
  Citys: "/mobile/city",
  UserInfo: "/mobile/user",
  CouponList: "/m/Coupon/getUseCoupon",
  CouponCount: "/m/Coupon/couponCount",
  noTimeOutCoupon: "/m/Coupon/noTimeOutCoupon",
  timeOutCoupon: "/m/Coupon/timeOutCoupon",
  FeedBack: "/mobile/system",
  ConsigneeList: "/mobile/user/address",
  ConsigneeAdd: "/mobile/user/address",
  ConsigneeDelete: "/mobile/user/address",
  ConsigneeUpdate: "/mobile/user/address",
  ConsigneeDefault: "/mobile/user/address",
  BuilderSearch: "/mobile/builder",
  QuestionList: "/m/fqa/list",
  AreaList: "/mobile/area",
  BuilderSearch: "/mobile/builder",
  OrderList: "/mobile/user/order",
  OrderInfo: "/mobile/user/order",
  Comment: "/mobile/user/order",
  CancelOrder: "/m/order/cancel",
  OrderSubmit: "/mobile/user/order",
  Pay:"/mobile/user/order",
  CardBalance:"/mobile/prepaid",
	OrderSubmit: "/mobile/user/order",
  Pay:"/mobile/user/order",
  CardBalance:"/mobile/prepaid",
  AccountLog: "/accountLog",
  PayBean:"/pay/payBean",
  ServiceCenter: "/m/fqa/list",
  BigGift: "/m/Coupon/registerGift",
  QRCodeId:"/m/QRCode/record/user"
}

var CountInfo = {
  //前缀
  PRE: Constant.PROTOCOL + "://" + Constant.BETA_URL + ":" + Constant.PROT,
  //接口
}

function Url(ApiUrl) {
  return ApiInfo.PRE + ApiInfo[ApiUrl];
}

function getCountInfo(ApiUrl) {
  return CountInfo.PRE + CountInfo[ApiUrl];
}
function getHostUrl() {
  return Constant.HOST_URL;
}

module.exports = {
  Url: Url,
  getCountInfo: getCountInfo,
  getHostUrl: getHostUrl
}
